module "resourcepool" {
    source                  = "../../../modules/maas/resource_pool"
    resource_pool_name      = "yangrui-test-pool"
}

module "machine-10-3-10-24" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.68"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Password@_"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-10-24"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.10.24"
    machine_pool            = module.resourcepool.name
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}

module "machine-10-3-10-25" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.69"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Password@_"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-10-25"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.10.25"
    machine_pool            = module.resourcepool.name
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}

module "machine-10-3-10-26" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.70"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Password@_"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-10-26"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.10.26"
    machine_pool            = module.resourcepool.name
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}

module "machine-10-3-10-27" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.71"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Password@_"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-10-27"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.10.27"
    machine_pool            = module.resourcepool.name
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}

module "machine-10-3-10-28" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.72"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Password@_"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-10-28"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.10.28"
    machine_pool            = module.resourcepool.name
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}

module "machine-10-3-10-29" {
    source                  = "../../../modules/maas/machine"
    enabled                 = true
    ipmi_power_address      = "10.253.254.73"
    ipmi_power_user         = "admin"
    ipmi_power_pass         = "Password@_"
    ipmi_privilege_level    = "ADMIN"
    machine_hostname        = "10-3-10-29"
    machine_cidr            = "10.3.8.0/22"
    machine_ip_address      = "10.3.10.29"
    machine_pool            = module.resourcepool.name
    instance_image          = "ubuntu-focal-2023-05-31-1685543044"
}